package com.erp.order.dn.service.spring;

import com.erp.order.dn.dao.DeliveryNoteLineDao;
import com.erp.order.dn.dao.model.DeliveryNoteLine;
import com.erp.order.dn.dao.model.DeliveryNoteLineCO;
import com.erp.order.dn.service.DeliveryNoteLineService;
import org.redragon.framework.hibernate.model.Pages;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @author zhoupan
 * @date 2021/4/9 11:25
 * @info
 */
@Service
@Transactional(rollbackFor=Exception.class)
public class DeliveryNoteLineServiceImpl implements DeliveryNoteLineService {

    @Autowired
    private DeliveryNoteLineDao deliveryNoteLineDao;

    @Override
    public void insertDataObject(DeliveryNoteLine deliveryNoteLine) {
        deliveryNoteLineDao.insertDataObject(deliveryNoteLine);
    }

    @Override
    public void updateDataObject(DeliveryNoteLine deliveryNoteLine) {
        this.deliveryNoteLineDao.updateDataObject(deliveryNoteLine);
    }

    @Override
    public void insertOrUpdateDataObject(DeliveryNoteLine deliveryNoteLine) {
        this.deliveryNoteLineDao.insertOrUpdateDataObject(deliveryNoteLine);
    }

    @Override
    public void deleteDataObject(DeliveryNoteLine deliveryNoteLine) {

    }

    @Override
    public List<DeliveryNoteLine> getDataObjects() {
        return null;
    }

    @Override
    public DeliveryNoteLine getDataObject(int i) {
        return deliveryNoteLineDao.getDataObject(i);
    }

    @Override
    public DeliveryNoteLine getDataObject(String s) {
        return null;
    }

    @Override
    public List<DeliveryNoteLine> getDataObjects(DeliveryNoteLineCO deliveryNoteLineCO) {
        return null;
    }

    @Override
    public List<DeliveryNoteLine> getDataObjects(Pages pages) {
        return null;
    }

    @Override
    public List<DeliveryNoteLine> getDataObjects(Pages pages, DeliveryNoteLineCO deliveryNoteLineCO) {
        return deliveryNoteLineDao.getDataObjects(pages, deliveryNoteLineCO);
    }

    @Override
    public List<Map<String, Object>> getDataObjectsArray(Pages pages, DeliveryNoteLineCO deliveryNoteLineCO) {
        return null;
    }

    @Override
    public List<DeliveryNoteLine> getDataObjectsForDataAuth(String s, Pages pages, DeliveryNoteLineCO deliveryNoteLineCO) {
        return null;
    }

    @Override
    public List<DeliveryNoteLineCO> getDeliveryNoteLineByHeadCode(Pages pages, DeliveryNoteLineCO deliveryNoteLineCO) {
        return null;
    }

    @Override
    public List<DeliveryNoteLine> getDataObjectsByDeliveryId(Integer id) {
        return deliveryNoteLineDao.getDataObjectsByDeliveryId(id);
    }
}
